package com.botarena.server.dao.filter;

import com.botarena.server.model.Account;

public class AccountFilter implements Filter<Account> {

	private String email;
	
	public AccountFilter(String email) {
		this.email = email;
	}
	
	@Override
	public boolean accept(Account account) {
		if (email != null && email.equals(account.getEmail())) {
			return true;
		} else {
			return false;
		}
	}

	public String getEmail() {
		return email;
	}
	
	public void setEmail(String email) {
		this.email = email;
	}
}
